function tianjia() {
    var groupName = $("#groupName").val();
    var groupDesc = $("#groupDesc").val();
    var sbj = {};
    sbj.groupName = groupName;
    sbj.groupDesc = groupDesc;
    $.ajax({
        type: 'post',
        url: "/email-group//add",
        contentType: 'application/json;charset=utf-8',
        data:JSON.stringify(sbj),
        success: function(data){    //请求成功时的回调函数
            if(data.code == "1"){
                alert("添加成功");
                document.cookie = "name="+JSON.stringify(data.data);
                window.location.href="/user/success";
            }else{
                alert(data.msg + data.data);
                window.location.href="/user/fail";
            }
        },
    });
};